<HTML> 
<HEAD> 
	<TITLE>3rd Party ROBOTC Drivers</TITLE> 
<link href="tabs.css" rel="stylesheet" type="text/css"/> 
<link href="doxygen.css" rel="stylesheet" type="text/css"/> 
</HEAD> 
 
<BODY bgcolor="#ffffff" link="#000000" vlink="#000000"> 
<table width="100%" bgcolor="navy" cellspacing=0 cellpadding=1 border=0> 
<tr><td><table width="100%" bgcolor="#EEEEDD" cellspacing=0 cellpadding=3 border=0> 
<tr> 
    <td width="33%" align="left"> <img src="images/LOGO_NXT.gif" width=266 height=44 border="0" alt="Mindstorms"></td> 
    <td><b><font size="+3" color="navy">3rd Party ROBOTC Drivers</font></b></td> 
    <td align="right"> <img src="images/logo.png" width=44 height=44 border="0" alt="RobotC"></td>     
</tr> 
  <tr bgcolor="#cccc99" align="right"> 
          <td colspan=3> <font face="arial" size="-1"> [<a href=main.html>Home</a>] [<a target=_top href="https://sourceforge.net/projects/rdpartyrobotcdr/">Download</a>] [<a target=_top href="http://apps.sourceforge.net/mantisbt/rdpartyrobotcdr/my_view_page.php">Submit a bug/suggestion</a>]  [<a target=_top href="http://www.robotc.net/forums/">ROBOTC Forums</a>] [<a target=_top href="http://botbench.com">Blog</a>] [<a target=_top href="http://sourceforge.net/donate/index.php?group_id=257238">Support this project</a>]</font> </td> 
</tr> 
</table></td></tr> 
</table> 
<!-- Generated by Doxygen 1.7.2 -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<h1>mindsensors-ps2ctrl-v4.h File Reference</h1>  </div>
</div>
<div class="contents">

<p>Playstation 2 Controller Sensor.  
<a href="#_details">More...</a></p>
<code>#include &quot;<a class="el" href="common_8h_source.html">common.h</a>&quot;</code><br/>

<p><a href="mindsensors-ps2ctrl-v4_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structt_p_s_p.html">tPSP</a></td></tr>
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga4b38b872559311663520214709e67be6">PSPV4_I2C_ADDR</a>&#160;&#160;&#160;0x02</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga2561e7d51154392c5d6b13e3f26c358c">PSPV4_REG_CMD</a>&#160;&#160;&#160;0x41</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga6dba8735b3b4c25f443e3e20b91ae783">PSPV4_CMD_INITIALISE</a>&#160;&#160;&#160;0x49</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga6c1ca8fae4519c35773cd6dcb81d5c5f">PSPV4_REG_BTN_SET_1</a>&#160;&#160;&#160;0x42</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga08a1939066d030afbfa438c231814fef">PSPV4_REG_BTN_SET_2</a>&#160;&#160;&#160;0x43</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#gab2326a8363464d917d5209bc5ee03584">PSPV4_REG_JLEFT</a>&#160;&#160;&#160;0x44</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga6b84f66d60719b4ce8ef0ba6e3983054">PSPV4_REG_JRIGHT</a>&#160;&#160;&#160;0x46</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga63d26bf2ba63de59617843b563b4ea81">PSPV4_REG_PRES_JPAD_UP</a>&#160;&#160;&#160;0x4A</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga45ea291279778daeda43f60f821abcfb">PSPV4_REG_PRES_JPAD_RIGHT</a>&#160;&#160;&#160;0x4B</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#gadd34ad310d8f8f9a754d95d9ece74da6">PSPV4_REG_PRES_JPAD_DOWN</a>&#160;&#160;&#160;0x4C</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga18ea4aeaf45bd17c6dec945bc27cb52c">PSPV4_REG_PRES_JPAD_LEFT</a>&#160;&#160;&#160;0x4D</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga326ea28d51e28f76fe1683eca96e8734">PSPV4_REG_PRES_BTN_L2</a>&#160;&#160;&#160;0x4E</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga7dc8e9112e86b659b894081470efd468">PSPV4_REG_PRES_BTN_R2</a>&#160;&#160;&#160;0x4F</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga48d5565cb50a9515a1434496b052e6dc">PSPV4_REG_PRES_BTN_L1</a>&#160;&#160;&#160;0x50</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga3997715d96d088cc667288e03718c3d0">PSPV4_REG_PRES_BTN_R1</a>&#160;&#160;&#160;0x51</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga40455f538f39ddb4b764882a25dad4f0">PSPV4_REG_PRES_BTN_TRIANGLE</a>&#160;&#160;&#160;0x52</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga7a330e7592ca9eff3b6b6b456a54867b">PSPV4_REG_PRES_BTN_SQUARE</a>&#160;&#160;&#160;0x53</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga625c00b28fa05c30e9015fde53b043bb">PSPV4_REG_PRES_BTN_CIRCLE</a>&#160;&#160;&#160;0x54</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga2d64bef67d5be4e68a4655fefec33b37">PSPV4_REG_PRES_BTN_CROSS</a>&#160;&#160;&#160;0x55</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga7f939ee3aedc2dcef5dedd2b94bbd798">PSPV4_REG_REF_SIGNAL_CODE</a>&#160;&#160;&#160;0x56</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#gae24aafcbc51b15e7273a01785efc6358">PSPV4_REG_REF_TX_TYPE</a>&#160;&#160;&#160;0x57</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga3361e0ea1089feb9f617c6c44fa387ac">PSPV4_REG_REF_SIGNAL_RAW</a>&#160;&#160;&#160;0x58</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga52039cab69434adceb1b78fd6d85141b">PSPV4_REG_REF_SIGNAL_COUNT</a>&#160;&#160;&#160;0x5C</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga1c9bdc5f4a8306db3b4f080d2863806e">PSPV4_SIGNAL_FAST_REWIND</a>&#160;&#160;&#160;0x32</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga703a7ff57c6f2af1a0269a691f0da8fb">PSPV4_SIGNAL_FAST_FORWARD</a>&#160;&#160;&#160;0x34</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga6b8c8bdf21d6e9e7c3c15397ecd49ac5">PSPV4_SIGNAL_PLAY</a>&#160;&#160;&#160;0x35</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga997ac1dfec9ccdd72f89b6f802232c04">PSPV4_SIGNAL_STOP</a>&#160;&#160;&#160;0x36</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#gaf00b9346a95067b25dc993429c198642">_PSPV4init</a> (tSensors link, ubyte address=PSPV4_I2C_ADDR)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">ubyte&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga408e5c340f57f7226ba1a5f3e8a7e7e7">_PSPV4readByte</a> (tSensors link, ubyte reg, ubyte address=PSPV4_I2C_ADDR)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#gad139284e853e183891c69201568b465c">PSPV4readButtons</a> (tSensors link, <a class="el" href="structt_p_s_p.html">tPSP</a> &amp;controllerState, ubyte address=PSPV4_I2C_ADDR)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga476537b55149689ef213b9e6d57417e7">PSPV4readButtonPressure</a> (tSensors link, <a class="el" href="structt_p_s_p.html">tPSP</a> &amp;controllerState, ubyte address=PSPV4_I2C_ADDR)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">byte&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga05068a35c691b19daae9ddbcd098da84">PSPV4readRefSignal</a> (tSensors link, ubyte address=PSPV4_I2C_ADDR)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">byte&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga8ef579448f32b14702039578d25d0829">PSPV4readRefSignalCount</a> (tSensors link, ubyte address=PSPV4_I2C_ADDR)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">byte&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#gaddc1f44924b7c24e39e0e88485636ba3">PSPV4readRefTXType</a> (tSensors link, ubyte address=PSPV4_I2C_ADDR)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga808007b50ad236e78649a42d0c3b41ee">PSPV4readRawRefTXValue</a> (tSensors link, ubyte address=PSPV4_I2C_ADDR)</td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__common.html#gaa172ef131853460e5b9f5c6db81d30f4">tByteArray</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga888c1d6bce2491135586588332f5ee17">PSPV4_I2CRequest</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__common.html#gaa172ef131853460e5b9f5c6db81d30f4">tByteArray</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga631e83a7c8d56968f1635f82fd62656b">PSPV4_I2CReply</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga1a31c7df4886601166b46381507bd661">PSPV4initalised</a> [4] = {false, false, false, false}</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structt_p_s_p.html">tPSP</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_s_p4.html#ga1c56a6059601b3554edc9adcc8736889">pspController</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Playstation 2 Controller Sensor. </p>
<p><a class="el" href="mindsensors-ps2ctrl-v4_8h.html" title="Playstation 2 Controller Sensor.">mindsensors-ps2ctrl-v4.h</a> provides an API for the Mindsensors PS2 controller sensor with referee signal receiver.</p>
<p>Changelog:</p>
<ul>
<li>0.1: Initial release</li>
</ul>
<p>Credits:</p>
<ul>
<li>Big thanks to Mindsensors for providing me with the hardware necessary to write and test this.</li>
</ul>
<p>License: You may use this code as you wish, provided you give credit where its due.</p>
<p>THIS CODE WILL ONLY WORK WITH ROBOTC VERSION 3.59 AND HIGHER.</p>
<dl class="author"><dt><b>Author:</b></dt><dd>Xander Soldaat (xander_at_botbench.com) </dd></dl>
<dl class="date"><dt><b>Date:</b></dt><dd>30 July 2012 </dd></dl>
<dl class="version"><dt><b>Version:</b></dt><dd>0.1 </dd></dl>

<p>Definition in file <a class="el" href="mindsensors-ps2ctrl-v4_8h_source.html">mindsensors-ps2ctrl-v4.h</a>.</p>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Wed Mar 13 2013 19:56:43 for ROBOTC Drivers by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address>
</body>
</html>
